<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <title>测试</title>
    <script src="js/jquery.min.js"></script>
    <style>
        div {
            margin: 5px 0;
        }
    </style>
</head>
<body>
<div>
    <input type="button" id="getRiskCase" value="安全厂商获取预警信息">
</div>
<div>
    <input type="button" id="getEvenCase" value="安全厂商获取事件信息">
</div>
<div>
    <input type="button" id="updateCase" value="厂商修改信息">
</div>
<div>
    <input type="button" id="getOffices" value="值班员获取网信办信息列表">
</div>
<div>
    <input type="button" id="getOperators" value="网信办获取运营单位信息列表">
</div>
<div>
    <input type="button" id="addDailyReport" value="每日零报告新增">
</div>
<div>
    <input type="button" id="deleteDailyReport" value="每日零报告删除">
</div>
<div>
    <input type="button" id="detailDailyReport" value="每日零报告详情--值班员&领导">
</div>
<div>
    <input type="button" id="detailSubDailyReport" value="每日零报告详情--地方以下">
</div>
<div>
    <input type="button" id="summaryFeedback" value="每日零报告详情中的报告汇总">
</div>
<div>
    <input type="button" id="listDailyReport" value="每日零报告列表">
</div>
<div>
    <input type="button" id="dailyOrgs" value="每日零报告发布--组织架构">
</div>
<div>
    <input type="button" id="releaseDailyReport" value="每日零报告发布">
</div>
<div>
    <input type="button" id="scheduleList" value="获取定时器列表">
</div>
<div>
    <input type="button" id="synchUser" value="同步DDIO用户">
</div>
<div>
    <input type="button" id="synchOrg" value="同步DDIO组织架构">
</div>
<div>
    <input type="button" id="eventSummary" value="事件详情中的响应反馈">
</div>
<div>
    <input type="button" id="handleEventFeedback" value="事件响应反馈--处理">
</div>
<div>
    <input type="button" id="riskSummary" value="预警详情中的响应反馈">
</div>
<div>
    <input type="button" id="total" value="预警详情中的响应反馈--合计">
</div>
<div>
    <input type="button" id="handleRiksFeddback" value="预警响应反馈--处理">
</div>
<div>
    <input type="button" id="releaseEvent" value="值班员事件下发">
</div>
<div>
    <input type="button" id="releaseSubEvent" value="地方网信办事件下发">
</div>
<div>
    <input type="button" id="releaseRisk" value="值班员风险下发">
</div>
<div>
    <input type="button" id="releaseSubRisk" value="地方网信办风险下发">
</div>
<div>
    <input type="button" id="listEventFeedback" value="我的任务--事件列表">
</div>
<div>
    <input type="button" id="listRiskFeedback" value="我的任务--预警列表">
</div>
<div>
    <input type="button" id="datailEventFeedback" value="我的任务事件详情">
</div>
<div>
    <input type="button" id="submitEventFeedback" value="我的任务待办事件保存/提交">
</div>
<div>
    <input type="button" id="datailRiskFeedback" value="我的任务预警详情">
</div>
<div>
    <input type="button" id="submitRiskFeedback" value="我的任务待办预警保存/提交">
</div>
<div>
    <input type="button" id="distributeUserRole" value="人员分配角色">
</div>
<div>
    <input type="button" id="updateFeedback" value="每日零报告保存/提交">
</div>
<div>
    <input type="button" id="addCirculationRecord" value="确认/继续跟踪/终止反馈">
</div>
<div>
    <input type="button" id="listCirculationRecord" value="流转记录">
</div>
<div>
    <input type="button" id="batchCirculationRecord" value="批量确认/继续跟踪/终止反馈">
</div>
<div>
    <form method="post" action="/Cyberspace/sys/infrastructureInformationTable/import" enctype="multipart/form-data">
        <input type="file" id="excelFile" name="file"/>
        <button type="submit">基础信息Excel批量导入</button>
    </form>
</div>
<div>
    <a href="/Cyberspace/sys/infrastructureInformationTable/template">基础设施信息模板下载</a>
</div>
<div>
    <input type="button" id="selectInfrastructure" value="基础设施信息查询">
</div>
<div>
    <input type="button" id="addInformation" value="新增信息&信息类型">
</div>
<div>
    <input type="button" id="updateInformation" value="更新信息&信息类型">
</div>
<div>
    <input type="button" id="addRisk" value="新增信息&风险类型">
</div>
<div>
    <input type="button" id="updateRisk" value="更新信息&风险类型">
</div>
<div>
    <input type="button" id="addEvent" value="新增信息&事件类型">
</div>
<div>
    <input type="button" id="updateEvent" value="更新信息&事件类型">
</div>
<div>
    <input type="button" id="getListEventType" value="获取事件类型列表">
</div>
<div>
    <input type="button" id="addTodayBulletin" value="新增今日快报">
</div>
<div>
    <input type="button" id="updateTodayBulletin" value="更新今日快报">
</div>
<div>
    <input type="button" id="getTodayBulletin" value="获取今日快报">
</div>
<div>
    <input type="button" id="getListTodayBulletin" value="获取今日快报列表">
</div>
<div>
    <input type="button" id="getListInformationType" value="获取信息类型列表">
</div>
<div>
    <input type="button" id="getUser" value="获取用户">
</div>
<div>
    <input type="button" id="getListUser" value="获取用户列表">
</div>
<div>
    <input type="button" id="getListRiskType" value="获取风险类型列表">
</div>
<div>
    <input type="button" id="updateBulletinApproval" value="今日快报处理流程">
</div>
<div>
    <input type="button" id="getListIndustry" value="获取行业列表">
</div>
<div>
    <input type="button" id="getListRegion" value="获取地域列表">
</div>
<div>
    <input type="button" id="getListBaseInfo" value="筛选获取信息列表">
</div>
<div>
    <input type="button" id="getBaseInfo" value="获取信息详情">
</div>
<div>
    <input type="button" id="updateBaseInfo" value="更新信息状态为不采用">
</div>
<div>
    <input type="button" id="restoreBaseInfo" value="不采用还原为可用">
</div>
<div>
    <input type="button" id="updateEventApproval" value="事件审批">
</div>
<div>
    <input type="button" id="updateRiskApproval" value="风险审批">
</div>
<div>
    <input type="button" id="addToRiskManage" value="风险通知">
</div>
<div>
    <input type="button" id="getRiskManageInfo" value="获取风险通知详情">
</div>
<div>
    <input type="button" id="getRiskManageList" value="风险管理列表">
</div>
<div>
    <input type="button" id="addToEventManage" value="事件通知">
</div>
<div>
    <input type="button" id="getEventManageInfo" value="获取事件通知详情">
</div>
<div>
    <input type="button" id="getEventManageList" value="事件管理列表">
</div>
<div>
    <input type="button" id="pendingCount" value="待处理信息总数">
</div>
<div>
    <input type="button" id="dataCount" value="数据统计汇总">
</div>
<div>
    <input type="button" id="getDynamicInformationList" value="首页信息列表">
</div>
<div>
    <input type="button" id="getListHistory" value="历史信息列表">
</div>
<div>
    <input type="button" id="getListManageBase" value="工作情况">
</div>
</body>
<script type="text/javascript">
    $("#handleRiksFeddback").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/riskFeedbackTable/handle',
            data: {
                id: 1,
                status: 2 //确定--2；继续跟踪--0
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#total").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/riskFeedbackTable/total',
            data: {
                baseID: 29,
                downsSet: '["11","17","18"]'//查询条件
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#riskSummary").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/riskFeedbackTable/summary',
            data: {
                page: 1,
                size: 10,
                baseID: 52,
                downsSet: '["2201","14","3","12"]'//查询条件
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#handleEventFeedback").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/eventFeedbackTable/handle',
            data: {
                id: 1,
                status: 2 //确定--2；继续跟踪--0
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#eventSummary").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/eventFeedbackTable/summary',
            data: {
                page: 1,
                size: 10,
                baseID: 2,
                downsSet: '[13,19,20]'//查询条件
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    var urls = ['http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg', 'http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a02.jpg'];
    $("#updateFeedback").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/feedbackTable/update',
            data: {
                id: 1,
                writerID: '4328625054',//当前填报的人的豆豆号
                systemSituation: "正常",//系统运行情况
                situationDesc: "情况描述",
                attackNumber: 12,//受攻击次数
                eventNumber: 8,//发生事件次数
                isSubmit: 1 //0--保存;1--提交
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#addCirculationRecord").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/circulationRecordTable/add',
            data: {
                fId: "0854c66ac5654446b6d7701179840988",//就是id
                exStatus: 1,//1--确认;2--继续跟踪;3--终止反馈
                content: "审核意见",
                infoType: 3 //2--预警；3--事件
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#listCirculationRecord").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/circulationRecordTable/list',
            data: {
                fId: "0854c66ac5654446b6d7701179840988"
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#batchCirculationRecord").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/circulationRecordTable/batch',
            data: {
                baseID: 19,
                orgIDs: '[13,19,20]',//"响应反馈"--取downsSet ；"协调处置反馈"--取manufacturers；
                exStatus: 1,//1--确认;2--继续跟踪;3--终止反馈
                content: "确认",// "继续跟踪"  "终止反馈" --这里根据对应的按钮默认这几个值
                infoType: 2 //2--预警；3--事件
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#selectInfrastructure").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/infrastructureInformationTable/select',
            data: {
                page: 1,
                size: 10,
                name: 'name'//查询条件
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#distributeUserRole").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/user/distribute',
            data: {
                roleId: 3,
                users: JSON.stringify(selections),
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#summaryFeedback").click(function () {//该接口目前只给领导和值班员
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/feedbackTable/summary',
            data: {
                page: 1,
                size: 10,
                reportID: 1,//传每日零报告的ID
                isSubmit: 1 //(0--未反馈;1--已反馈)
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#listSafeFeedback").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/safetyFeedbackTable/list',
            data: {
                page: 1,
                size: 10,
                orgID: '14',//豆豆号
                status: 0 //状态(0--待办；1--已办；2--办结)
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#listRiskFeedback").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/riskFeedbackTable/list',
            data: {
                page: 1,
                size: 10,
                orgID: '11',//豆豆号
                //status: 0 //状态(0--待办；1--已办；2--办结)
                statusList: JSON.stringify([0, 1]) //此处查询多个状态的参数
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#listEventFeedback").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/eventFeedbackTable/list',
            data: {
                page: 1,
                size: 10,
                orgID: '11',//豆豆号
                //status: 0 //状态(0--待办；1--已办；2--办结)--PC端
                statusList: JSON.stringify([0, 1]) //此处查询多个状态的参数
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#submitRiskFeedback").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/riskFeedbackTable/submit',
            data: {
                //地方网信办&运营单位
                response: '应对情况',
                units: 20,//排查单位数量
                devices: 25,//排查设备数量
                affectedUnits: 10,//受影响单位数量
                infectedDevices: 3,//感染病毒设备数量
                keyFacilityNumber: 5,//感染病毒关键信息设施数量
                dumpDevices: 6,//已清除病毒设备数据量
                cleanKeyFacility: 50,//已清除病毒关键设施
                //安全厂商
                superviseCase: "安全厂商检测情况",
                uploadFiles: "['http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg','http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg']",//安全厂商上传的文件
                //共有的
                id: 2,
                status: 1//保存--0；提交--1  安全厂商的保存与提交也是如此区别
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#datailRiskFeedback").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/riskFeedbackTable/detail',
            data: {
                id: 2
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#submitEventFeedback").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/eventFeedbackTable/submit',
            data: {
                //地方网信办&运营单位
                situation: '情况说明',
                systemName: '系统名称',
                ip: '192168.1.1',//IP地址
                domain: 'www.baidu.com',//域名
                behindUrl: 'www.sian.com',//后门URL
                osVersion: 'win10',//操作系统版本
                appName: '应用软件名称',//应用软件名称
                systemPurpose: '系统用途',//系统用途
                unit: '所属单位',
                attackSource: '攻击来源',
                attackRegion: '攻击地域',
                //安全厂商
                superviseCase: "安全厂商检测情况",
                uploadFiles: "['http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg','http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg']",//安全厂商上传的文件
                //共有
                id: 1,
                status: 1//保存--0；提交--1  安全厂商的保存与提交也是如此区别
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#datailEventFeedback").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/eventFeedbackTable/detail',
            data: {
                id: 2
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#releaseRisk").click(function () {
        var orgIDs = ['2201', '14', '3', '12'];
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/risk/release',
            data: {
                id: 52,
                replyClaim: '应对要求 应对要求 应对要求',//应对要求
                downsSet: JSON.stringify(orgIDs),//选择的下发单位
                //handleClaim 和 manufacturers为没有或者为空 表示页面上的“是否需要协商处置”---为否
                handleClaim: '处置要求',//处置要求
                manufacturers: JSON.stringify(safes),//选择的下发安全厂商
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#releaseSubRisk").click(function () {
        var orgIDs = ['2201', '14', '3', '12'];
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/riskFeedbackTable/release',
            data: {
                id: 2,
                replyClaim: '应对要求',//应对要求
                downsSet: JSON.stringify(orgIDs)//选择的下发人
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#releaseSubEvent").click(function () {
        var orgIDs = ['2202', '14', '30', '12'];
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/eventFeedbackTable/release',
            data: {
                id: 22,
                replyClaim: '应对要求',//应对要求
                downsSet: JSON.stringify(orgIDs)//选择的下发单位
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    var safes = ['13'];
    $("#releaseEvent").click(function () {
        var orgIDs = ['2201', '14', '3', '12'];
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/event/release',
            data: {//将原先的"title"去掉了
                id: 7,
                replyClaim: '应对要求 应对要求 应对要求',//应对要求
                downsSet: JSON.stringify(orgIDs),//选择的下发单位
                //handleClaim 和 manufacturers为没有或者为空 表示页面上的“是否需要协商处置”---为否
                handleClaim: '处置要求',//处置要求
                manufacturers: JSON.stringify(safes),//选择的下发安全厂商
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#synchOrg").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/user/synchOrg',
            data: {
                orgID: 11
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#synchUser").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/user/synch',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#dailyOrgs").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/organizeTable/dailyOrgs',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#scheduleList").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/job/schedule/list',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#releaseDailyReport").click(function () {
        var orgIDs = [15, 11, 12, 13, 14];
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/dailyReport/release',
            data: {
                //id: 2, //如果是修改中的发布,要带上ID
                title: "标题213",
                releaseUnit: "发布单位213",
                releaseMan: "发布人213",
                cycleStartTime: "2017-12-20",//报告周期开始时间
                cycleEndTime: "2017-12-25",//报告周期结束时间
                dailyReleaseTime: "16" + ":" + "31",//每天发布时间(定时器CRON)
                dailyEndedTime: "18" + ":" + "00",//每天反馈截止时间
                requirement: "报告要求12-20发布测试111",
                selections: JSON.stringify(orgIDs)
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#detailSubDailyReport").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/dailyReport/detailSub',
            data: {
                fId: 29//fid
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#detailDailyReport").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/dailyReport/detail',
            data: {
                id: 11
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#listDailyReport").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/dailyReport/list',
            data: {
                page: 1,
                size: 10,
                flag: 0,//0--在办；1--办结
                //startTime: '2017-12-19 16:32:03',//搜索条件
                //endTime: '2017-12-19 17:52:03',//搜索条件
                linkdoodID: '2' //用户豆豆号 后台会根据该用户所属的角色进行查询
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#deleteDailyReport").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/dailyReport/delete',
            data: {
                id: 25
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    var selections = [
        {
            linkdoodID: "4328625054",
            linkdoodName: "廖杰",
            photoUrl: "www.baidu.com",
            cellphone: "13388888881",
            orgName: "杭州网信办",
            orgID: 2201
        },
        {
            linkdoodID: "999999999",
            linkdoodName: "张三",
            photoUrl: "www.baidu.com",
            cellphone: "13300000001",
            orgName: "杭州网信办",
            orgID: 2073
        }, {
            linkdoodID: "77777777",
            linkdoodName: "王五",
            photoUrl: "www.baidu.com",
            cellphone: "13300000001",
            orgName: "杭州网信办",
            orgID: 2074
        }, {
            linkdoodID: "88888888",
            linkdoodName: "李四",
            photoUrl: "www.baidu.com",
            cellphone: "13300000002",
            orgName: "西湖网信办",
            orgID: 2074
        }, {
            linkdoodID: "66666666",
            linkdoodName: "赵六",
            photoUrl: "www.baidu.com",
            cellphone: "13300000003",
            orgName: "西湖网信办",
            orgID: 2076
        }];
    $("#addDailyReport").click(function () {
        var orgIDs = ['2201', '2202', '2203', '2204', '3'];
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/dailyReport/addupdate',
            data: {
                //id: 67,//修改--数字；''--新增
                title: "标题233",
                releaseUnit: "发布单位12",
                releaseMan: "发布人12",
                cycleStartTime: "2017-12-20",//报告周期开始时间
                cycleEndTime: "2017-12-20",//报告周期结束时间
                dailyReleaseTime: "15" + ":" + "18",//每天发布时间(定时器CRON)
                dailyEndedTime: "18" + ":" + "00",//每天反馈截止时间
                requirement: "报告要求12-18",
                selections: JSON.stringify(orgIDs)
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#addInformation").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/information',
            data: {
                title: "测试", //标题
                happenTime: "2017-12-18 12:00:00", //发生日期
                createUserID: "4328621729", //报送人ID

                sources: "北信源信源豆豆", //信息来源
                link: "http://vrv.linkdood.cn", //链接
                type: "1,2", //类型,1:网络武器 2:多边关系 3:涉我言论 4:攻击事件 5:重要政策 6:国外观点 7:国内动态
                content: "测试", //内容
                primaryJudgment: "测试" //初步研判
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#updateInformation").click(function () {
        $.ajax({
            type: 'put',
            url: '/Cyberspace/sys/information/6',
            data: {
                title: "测试1", //标题
                happenTime: "2017-12-18 12:00:00", //发生日期
                deliveryUnit: "北信源", //报送单位
                deliveryMan: "测试", //报送人

                sources: "北信源信源豆豆1", //信息来源
                link: "http://vrv.linkdood.cn", //链接
                type: 1, //类型,1:网络武器 2:多边关系 3:涉我言论 4:攻击事件 5:重要政策 6:国外观点 7:国内动态
                content: "测试", //内容
                primaryJudgment: "测试" //初步研判
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#addRisk").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/risk',
            data: {
                title: "测试", //标题
                happenTime: "2017-12-18 12:00:00", //发生日期
                createUserID: "123", //报送人

                primaryRiskType: 1, //初判风险类型
                primaryRiskGrade: 2, //初判风险等级
                fax: "88888888", //传真
                basicSituationDescription: "测试基本情况描述", //基本情况描述
                verificationMethod: "测试验证方法", //验证方法
                trendHazards: "测试发展趋势及可能危害", //发展趋势及可能危害
                measureToken: "测试已采取的措施和效果", //已采取的措施和效果
                suggestion: "测试", //建议应对措施
                remarks: "http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg", //备注
                enclosure: JSON.stringify(urls), //附件
                influenceHarm: "测试", //影响及危害描述
                regionIDs: "1,2", //地域表IDs组合
                industryIDs: "3,4", //行业IDs组合

                infrastructure_information: JSON.stringify(
                    [
                        {
                            name: "测试",
                            unit: "",
                            leadingOfficial: "",
                            contactPhone: "",
                            ip: "",
                            domainName: "",
                            url: ""
                        },
                        {
                            name: "",
                            unit: "",
                            leadingOfficial: "",
                            contactPhone: "",
                            ip: "1.1.1.1",
                            domainName: "",
                            url: ""
                        }
                    ]
                )
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#updateRisk").click(function () {
        $.ajax({
            type: 'put',
            url: '/Cyberspace/sys/risk/6',
            data: {
                title: "测试1", //标题
                happenTime: "2017-12-18 12:00:00", //发生日期
                createUserID: "123", //报送人

                primaryRiskType: 1, //初判风险类型
                primaryRiskGrade: 2, //初判风险等级
                fax: "88888888", //传真
                basicSituationDescription: "测试基本情况描述", //基本情况描述
                verificationMethod: "测试验证方法", //验证方法
                trendHazards: "测试发展趋势及可能危害", //发展趋势及可能危害
                measureToken: "测试已采取的措施和效果", //已采取的措施和效果
                suggestion: "测试", //建议应对措施
                remarks: "http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg", //备注
                enclosure: JSON.stringify(urls), //附件
                influenceHarm: "测试", //影响及危害描述
                regionIDs: "1,2", //地域表IDs组合
                industryIDs: "3,4", //行业IDs组合

                infrastructure_information: JSON.stringify(
                    [
                        {
                            name: "测试",
                            unit: "",
                            leadingOfficial: "",
                            contactPhone: "",
                            ip: "",
                            domainName: "",
                            url: ""
                        },
                        {
                            name: "",
                            unit: "",
                            leadingOfficial: "",
                            contactPhone: "",
                            ip: "1.1.1.1",
                            domainName: "",
                            url: ""
                        }
                    ]
                )
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#addEvent").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/event',
            data: {
                title: "测试", //标题
                happenTime: "2017-12-18 12:00:00", //发生日期
                createUserID: "123", //报送人

                primaryEventTypeFirst: "1", //初判事件类型一级事件
                primaryEventTypeSecond: "2", //初判事件类型二级事件
                primaryEventGrade: "1", //初判风险等级
                fax: "88888888", //传真
                feedBackUpToTime: "2017-12-18 12:00:00", //反馈截止时间
                associatedRisk: "测试关联风险", //关联风险
                unitSystemDescription: "测试事发单位及系统功能描述", //事发单位及系统功能描述
                primaryJudgment: "测试事态发展概述及初判原因", //事态发展概述及初判原因
                measureToken: "测试已采取的措施和效果", //已采取的措施和效果
                itemsAdvise: "测试请求事项及工作建议", //请求事项及工作建议
                remarks: "http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg", //备注
                enclosure: JSON.stringify(urls), //附件
                influenceHarm: "测试", //影响及危害描述
                regionIDs: "1,2", //地域表IDs组合
                industryIDs: "3,4", //行业IDs组合

                infrastructure_information: JSON.stringify(
                    [
                        {
                            name: "测试",
                            unit: "",
                            leadingOfficial: "",
                            contactPhone: "",
                            ip: "",
                            domainName: "",
                            url: ""
                        },
                        {
                            name: "",
                            unit: "",
                            leadingOfficial: "",
                            contactPhone: "",
                            ip: "1.1.1.1",
                            domainName: "",
                            url: ""
                        }
                    ]
                )
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#updateEvent").click(function () {
        $.ajax({
            type: 'put',
            url: '/Cyberspace/sys/event/6',
            data: {
                title: "测试1", //标题
                happenTime: "2017-12-18 12:00:00", //发生日期
                createUserID: "123", //报送人

                primaryEventTypeFirst: "1", //初判事件类型一级事件
                primaryEventTypeSecond: "2", //初判事件类型二级事件
                primaryEventGrade: "3", //初判风险等级
                fax: "88888888", //传真
                feedBackUpToTime: "2017-12-18 12:00:00", //反馈截止时间
                associatedRisk: "测试关联风险", //关联风险
                unitSystemDescription: "测试事发单位及系统功能描述", //事发单位及系统功能描述
                primaryJudgment: "测试事态发展概述及初判原因", //事态发展概述及初判原因
                measureToken: "测试已采取的措施和效果", //已采取的措施和效果
                itemsAdvise: "测试请求事项及工作建议", //请求事项及工作建议
                remarks: "http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg", //备注
                enclosure: JSON.stringify(urls), //附件
                influenceHarm: "测试", //影响及危害描述
                regionIDs: "1,2", //地域表IDs组合
                industryIDs: "3,4", //行业IDs组合

                infrastructure_information: JSON.stringify(
                    [
                        {
                            name: "测试",
                            unit: "",
                            leadingOfficial: "",
                            contactPhone: "",
                            ip: "",
                            domainName: "",
                            url: ""
                        },
                        {
                            name: "",
                            unit: "",
                            leadingOfficial: "",
                            contactPhone: "",
                            ip: "1.1.1.1",
                            domainName: "",
                            url: ""
                        }
                    ]
                )
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#getListEventType").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/eventType?parentID=0',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#addTodayBulletin").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/todayBulletin',
            data: {
                createUserID: "888888", //填报人ID
                approvalUserID: "888888", //批准人ID
                advice: "test", //研判意见
                baseIDs: "1,2" //关联的信息表ID
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#updateTodayBulletin").click(function () {
        $.ajax({
            type: 'put',
            url: '/Cyberspace/sys/todayBulletin/6',
            data: {
                createUser: "888888", //填报人ID
                approvalUserID: "888888", //批准人ID
                baseIDs: "1,2" //关联的信息表ID
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#getTodayBulletin").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/todayBulletin/4',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#getListTodayBulletin").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/todayBulletin',
            data: {
                title: "今日",
                page: 1,
                size: 10,
                type: 0,//0在办，1办结
                startTime: "2017-11-01",
                endTime: "2017-12-31"
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getListInformationType").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/informationType',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getUser").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/user/6',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#getListUser").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/user',
            data: {
                roleID: 1 //类型名
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getListRiskType").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/riskType',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#updateBulletinApproval").click(function () {
        $.ajax({
            type: 'put',
            url: '/Cyberspace/sys/bulletinApproval/1',
            data: {
                advice: "请示领导", //研判意见
                approvalUserID: "111111", //请示人ID
                type: 1 //1.转批2.同意3.退回
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getListIndustry").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/industry',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#getListRegion").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/region',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getListBaseInfo").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/baseTable',
            data: {
                page: 1,
                size: 10,
                // startTime: "2017-11-01",
                // endTime: "2017-12-31",
                // title: "",
                type: 3, //1.信息2.风险3.事件
                userID: ""
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getListHistory").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/baseTable/history',
            data: {
                isEnabled: 1, //1-已处理(不可用) 2-待采用(不可用)
                page: 1,
                size: 10,
                startTime: "2017-11-01",
                endTime: "2017-12-31",
                title: "",
                type: 3 //1.信息2.风险3.事件
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getEventManageList").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/eventManage',
            data: {
                page: 1,
                size: 10,
                startTime: "2017-11-01",
                endTime: "2017-12-31",
                eventLevel: "1,2", //事件等级:1特别重大 2重大 3较大 4一般
                eventType: "1", //事件类型
                timeType: 1, //时间类型 1--创建时间 2--更新时间
                status: 1 //预警事件管理状态 1--在办 2--办结 单
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getRiskManageList").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/riskManage',
            data: {
                page: 1,
                size: 10,
                startTime: "2017-11-01",
                endTime: "2017-12-31",
                warningLevel: 1, //预警等级:0无 1红 2橙 3黄 4蓝
                riskLevel: "1", //风险等级:1很高 2高 3中等 4低 5很低
                timeType: 1, //时间类型 1--创建时间 2--更新时间
                status: 1 //预警事件管理状态 1--在办 2--办结 单
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getBaseInfo").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/baseTable/37',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#updateBaseInfo").click(function () {
        $.ajax({
            type: 'put',
            url: '/Cyberspace/sys/baseTable/changeStatus',
            data: {
                ids: "3,4"
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#restoreBaseInfo").click(function () {
        $.ajax({
            type: 'put',
            url: '/Cyberspace/sys/baseTable/restore',
            data: {
                id: 3
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#updateEventApproval").click(function () {
        $.ajax({
            type: 'put',
            url: '/Cyberspace/sys/eventApproval',
            data: {
                baseID: 1,
                advice: "请示领导", //研判意见
                approvalUserID: "111111", //请示人ID
                type: 1 //1.转批2.同意3.退回4.归档
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#updateRiskApproval").click(function () {
        $.ajax({
            type: 'put',
            url: '/Cyberspace/sys/riskApproval',
            data: {
                baseID: 1,
                advice: "请示领导", //研判意见
                approvalUserID: "111111", //请示人ID
                type: 1 //1.转批2.同意3.退回4.归档
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#addToRiskManage").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/riskManage',
            data: {
                //基础信息
                id: "1", //id
                title: "测试1", //标题
                happenTime: "2017-12-18 12:00:00", //发生日期

                //风险则传以下参数
                primaryRiskType: "1", //初判风险类型
                primaryRiskGrade: "2", //初判风险等级
                fax: "88888888", //传真
                basicSituationDescription: "测试基本情况描述", //基本情况描述
                verificationMethod: "测试验证方法", //验证方法
                trendHazards: "测试发展趋势及可能危害", //发展趋势及可能危害
                measureToken: "测试已采取的措施和效果", //已采取的措施和效果
                suggestion: "测试", //建议应对措施
                remarks: "http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg", //备注
                enclosure: JSON.stringify(urls), //附件
                influenceHarm: "测试", //影响及危害描述
                regionIDs: "1,2", //地域表IDs组合
                industryIDs: "3,4", //行业IDs组合
                warningLevel: 1, //预警等级:0无 1红 2橙 3黄 4蓝

                //基础设施信息
                infrastructure_information: JSON.stringify(
                    [
                        {
                            name: "测试",
                            unit: "",
                            leadingOfficial: "",
                            contactPhone: "",
                            ip: "",
                            domainName: "",
                            url: ""
                        },
                        {
                            name: "",
                            unit: "",
                            leadingOfficial: "",
                            contactPhone: "",
                            ip: "1.1.1.1",
                            domainName: "",
                            url: ""
                        }
                    ]
                ),

                advice: "", //研判意见
                approvalUserID: "111111" //请示人ID
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getRiskManageInfo").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/riskManage/1',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#addToEventManage").click(function () {
        $.ajax({
            type: 'post',
            url: '/Cyberspace/sys/eventManage',
            data: {
                //基础信息
                id: "1", //id
                title: "测试1", //标题
                happenTime: "2017-12-18 12:00:00", //发生日期

                //事件则传以下参数
                primaryEventTypeFirst: "1", //初判事件类型一级事件
                primaryEventTypeSecond: "2", //初判事件类型二级事件
                primaryEventGrade: "3", //初判风险等级
                fax: "88888888", //传真
                feedBackUpToTime: "2017-12-18 12:00:00", //反馈截止时间
                associatedRisk: "测试关联风险", //关联风险
                unitSystemDescription: "测试事发单位及系统功能描述", //事发单位及系统功能描述
                primaryJudgment: "测试事态发展概述及初判原因", //事态发展概述及初判原因
                measureToken: "测试已采取的措施和效果", //已采取的措施和效果
                itemsAdvise: "测试请求事项及工作建议", //请求事项及工作建议
                remarks: "http://vrv.linkdood.cn:80/at010/0/prichatfile/20160705/2145/a_9cOy_69da000020872a01.jpg", //备注
                enclosure: JSON.stringify(urls), //附件
                influenceHarm: "测试", //影响及危害描述
                regionIDs: "1,2", //地域表IDs组合
                industryIDs: "3,4", //行业IDs组合

                //基础设施信息
                infrastructure_information: JSON.stringify(
                        [
                            {
                                name: "测试",
                                unit: "",
                                leadingOfficial: "",
                                contactPhone: "",
                                ip: "",
                                domainName: "",
                                url: ""
                            },
                            {
                                name: "",
                                unit: "",
                                leadingOfficial: "",
                                contactPhone: "",
                                ip: "1.1.1.1",
                                domainName: "",
                                url: ""
                            }
                        ]
                ),

                advice: "", //研判意见
                changeUserID: "111111", //值班员ID
                approvalUserID: "111111" //请示人ID
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getEventManageInfo").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/eventManage/1',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#pendingCount").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/baseTable/pendingCount',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#dataCount").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/baseTable/dataCount',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getDynamicInformationList").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/baseTable/getDynamicInformationList',
            data: {
                page: 1,
                size: 10
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getListManageBase").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/baseTable/getListManageBase',
            data: {
                page: 1,
                size: 10,
                type: 1,
                title: "",
                startTime: "2017-11-01",
                endTime: "2017-12-31"
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getOffices").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/organizeTable/off',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getOperators").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/organizeTable/listOperators?orgID=14',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#getEvenCase").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/safetyFeedbackTable/riskCase?orgID=2',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
    $("#getRiskCase").click(function () {
        $.ajax({
            type: 'get',
            url: '/Cyberspace/sys/safetyFeedbackTable/evenCase?orgID=2',
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });

    $("#updateCase").click(function () {
        $.ajax({
            type: 'put',
            url: '/Cyberspace/sys/safetyFeedbackTable',
            data: {
                baseID: 2,
                superviseCase: "监测情况",
                isSubmit: 1 //0--保存;1--提交
            },
            dataType: 'json',
            success: function (data) {
                console.log(data);
            }
        })
    });
</script>
</html>